package xin.petstore.framework.cipher;

public class StrongTextEncryptor
        implements Encryptor {
    private org.jasypt.util.text.StrongTextEncryptor ste = new org.jasypt.util.text.StrongTextEncryptor();

    public void setPassword(String password) {
        this.ste.setPassword(password);
    }

    public String encrypt(String message) {
        return this.ste.encrypt(message);
    }

    public String decrypt(String encryptedMessage) {
        return this.ste.decrypt(encryptedMessage);
    }
}
